package com.example.recyclerviewdemo.demo0.adapter

import android.content.Context
import android.util.Log
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.recyclerviewdemo.MainAdapter
import com.example.recyclerviewdemo.R

class BaseQuiAdapter(private val mContext: Context): BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_quick),
    LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: String) {
        holder.setText(R.id.textView,"$item ${holder.adapterPosition}")
    }

    override fun onViewAttachedToWindow(holder: BaseViewHolder) {
        super.onViewAttachedToWindow(holder)


        Log.d("DebugTag","holder.adapterPosition:${holder.adapterPosition}")
        Log.d("DebugTag","holder:${holder}")
    }

}